<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<script type="text/javascript">
	$.subscribe('rowselect', function(event, data) {
		$("#gridinfo").html(
				'<s:a href="../TrabajoFina/cargarVerTesinaFront.action?id_tesis='
						+ event.originalEvent.id + '"><s:property value="getText(\'global.grid.verTesina\')"/></s:a>');
	});
</script>

<sj:tabbedpanel id="localtabs">
	<sj:tab id="tab1" target="tone" key='global.tag.tesis.titulotag' />
	<div id="tone">
		<div class="estiloDivBuscar">

			<s:url id="remoteurl" action="GridTesinas" />
			<s:property value="getText('global.tag.tesis.textoDeGuia')" />

			<sjg:grid id="gridtable" caption="%{getText('global.grid.tituloBuscar')}" dataType="json"
				href="%{remoteurl}" pager="true" gridModel="gridModel"
				rowList="10,15,20" rowNum="10" autowidth="true" navigator="true"
				navigatorSearchOptions="{sopt:['eq','ne'],reloadAfterSubmit:true}"
				navigatorAdd="false" navigatorEdit="false" navigatorDelete="false"
				editurl="%{editurl}" editinline="false"
				onSelectRowTopics="rowselect"
				onEditInlineSuccessTopics="oneditsuccess" viewrecords="true"
				rownumbers="true">

				<sjg:gridColumn name="id" index="id" title="Id" sortable="true"
					hidden="true" />
				<sjg:gridColumn name="titulo" index="titulo" title="%{getText('global.grid.tituloB')}"
					sortable="true" edittype="text" />
				<sjg:gridColumn name="autor" index="autor" title="%{getText('global.grid.autor')}"
					sortable="true" edittype="text" />
				<sjg:gridColumn name="director" index="director" title="%{getText('global.grid.director')}"
					sortable="true" edittype="text" />
				<sjg:gridColumn name="carrera" index="carrera" title="%{getText('global.grid.carrera')}"
					sortable="true" editable="true" edittype="text" />
			</sjg:grid>

		</div>
		<div id="gridinfo">
			
		</div>
	</div>
</sj:tabbedpanel>
